package com.cn.ycy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ComponentScan

//开启aop注解扫描
@EnableAspectJAutoProxy

//开启spring的事务传播
@EnableTransactionManagement

//导入配置文件
@ImportResource(locations = {"classpath:springcontext.xml" })

//mybatis 扫描 mapper 接口
@MapperScan( basePackages = "com.cn.ycy.dao")
public class CompentScanConfig {

}
